package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.DeclarationTypeCreateValidate;
import com.mdd.admin.validate.DeclarationTypeUpdateValidate;
import com.mdd.admin.validate.DeclarationTypeSearchValidate;
import com.mdd.admin.vo.DeclarationTypeListedVo;
import com.mdd.admin.vo.DeclarationTypeDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 申报类型服务接口类
 * @author LikeAdmin
 */
public interface IDeclarationTypeService {

    /**
     * 申报类型列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<DeclarationTypeListedVo>
     */
    PageResult<DeclarationTypeListedVo> list(PageValidate pageValidate, DeclarationTypeSearchValidate searchValidate);

    /**
     * 申报类型详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return DeclarationTypeDetailVo
     */
    DeclarationTypeDetailVo detail(Integer id);

    /**
     * 申报类型新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(DeclarationTypeCreateValidate createValidate);

    /**
     * 申报类型编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(DeclarationTypeUpdateValidate updateValidate);

    /**
     * 申报类型删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
